package com.itheima.exce;

import java.util.Arrays;
import java.util.Objects;

public class Test {

    public static void main(String[] args) {
        String s = Objects.toString(null, "这是一个空对象");
        System.out.println(s);
        Student student=null;
        System.out.println(student);
        System.out.println(Objects.isNull(student));
        System.out.println(Objects.nonNull(student));
        int[] ints = new int[5];
        System.out.println(Arrays.toString(ints));
        int[] arr={5,4,3,2,8,9};
        Arrays.sort(arr);
        System.out.println(Arrays.toString(arr));
        int i = Arrays.binarySearch(arr, 8);
        System.out.println(i);

    }
}
